%% Copyright
-module(binary_util).
-author("").

%% API
-export([binary_to_integer/1, integer_to_binary/1]).

binary_to_integer(Binary) when is_binary(Binary) ->
  List = binary_to_list(Binary),
  list_to_integer(List).

integer_to_binary(Integer) when is_integer(Integer) ->
  List = integer_to_list(Integer),
  list_to_binary(List).
